package tracer;

import java.util.List;
//CHRISTIAN:
public class IdentifiedMethod extends IdentifiedItem {

	private static final String NULLSTRING = "null";

	private String methodName;
	private String returnType;
	private boolean isFromFrameStack;
	private boolean isStatic;

	public boolean isStatic() {
		return isStatic;
	}

	public void setStatic(boolean isStatic) {
		this.isStatic = isStatic;
	}

	private List<FieldObject> variables;

	public IdentifiedMethod() {
		super();
	}

	public String getMethodName() {
		return (methodName != null) ? methodName : NULLSTRING;
	}

	public void setMethodName(String className) {
		this.methodName = className;
	}

	public String getReturnType() {
		return returnType;
	}

	public void setReturnType(String returnType) {
		this.returnType = returnType;
	}

	public List<FieldObject> getVariables() {
		return variables;
	}

	public void setVariables(List<FieldObject> variables) {
		this.variables = variables;
	}
	public boolean isFromFrameStack() {
		return isFromFrameStack;
	}
	
	public void setFromFrameStack(boolean fromframeStack) {
		this.isFromFrameStack = fromframeStack;
	}

}
